package com.ai.dmc.utils.json;

import java.util.List;

import net.sf.json.util.PropertyFilter;

@SuppressWarnings("unchecked")
public class IgnorePropertyFilter implements PropertyFilter {
	private List ignorePro = null;

	IgnorePropertyFilter(List filterProperty) {
		this.ignorePro = filterProperty;
	}

	public boolean apply(Object source, String name, Object value) {
		if (ignorePro.contains(name)) {
			return true;
		}
		return false;
	}
}
